<h1 class="demo-title">searchbar</h1>

<div search-bar placehold="{{placehold}}" keyword ="keyword" search="search" action="/" method="post"></div>

<pre lang-prism class="language-html">
<code class="language-html">
    &lt;div search-bar placehold="搜索关键字" keyword="keyword" search="search" action="/" method="post"&gt;
    &lt;/div&gt;
</code>
</pre>
<pre lang-prism class="language-js">
<code class="language-js">
app.controller("ctrl",function($scope,$http){
    $scope.keyword = "keyword";

    //ajax提交keyword请求数据
    $scope.search = function(){

    }
})
</code>
</pre>



